package com.ontheroad.group.model;

import java.io.Serializable;
import java.util.Date;

/**
 * 定时实体类
 * 
 * @author Yongtao Huang
 */
public class TimingGroupEntity implements Serializable {

	private static final long serialVersionUID = -7077273757504216906L;
	/**  */
	private int id;
	/**
	 * 是否可用
	 */
	private Boolean enable;
	/**
	 * 0-固定时间；1-日出时间；2-日落时间
	 */
	private Integer type;

	/**
	 * 调整分钟数；type >0时有效；如-15，表示日出(落)前15分钟
	 */
	private Integer adjust;
	/**
	 * 重复执行，如21表示每周一、三、五重复 0-不重复; 1-周一; 2-周二; 4-周三; 8-周四; 16-周五; 32-周六; 64-周日;
	 * 128-单次
	 */
	private Integer repeat;
	/**
	 * 创建时间
	 */
	private Date createTime;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public Boolean getEnable() {
		return enable;
	}

	public void setEnable(Boolean enable) {
		this.enable = enable;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getAdjust() {
		return adjust;
	}

	public void setAdjust(Integer adjust) {
		this.adjust = adjust;
	}

	public Integer getRepeat() {
		return repeat;
	}

	public void setRepeat(Integer repeat) {
		this.repeat = repeat;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

}
